package com.javaee.lpr.cotroller;

import com.javaee.lpr.entity.Carsinfo;
import com.javaee.lpr.service.CarsinfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class CarsinfoController {
    @Autowired
    private CarsinfoService carsinfoService;

    @RequestMapping
    public void addCars(Carsinfo carsinfo){
        carsinfoService.insertCars(carsinfo);
    }

}
